package com.cppsu.cgx.libraryseatselection.services;

import com.cppsu.cgx.libraryseatselection.dto.UserDto;
import com.cppsu.cgx.libraryseatselection.dto.UserLoginParam;
import com.cppsu.cgx.libraryseatselection.dto.UserParam;
import com.cppsu.cgx.libraryseatselection.entity.User;

import java.util.List;

/**
 * @Author: guibo
 * @Description:
 * @Date: Created in 10:51 2021/3/10
 * @Modified By:
 */
public interface UserService {
    List<UserDto> list(UserParam userParam);

    int add(UserParam userParam);

    int update(UserParam userParam);

    int delete(List<Long> ids);

    String login(UserLoginParam userLoginParam);

    User getCurrentUser();

    int updatePassword(String oldPassword,String newPassword);

}
